package com.example.musicwebcon.model.dto;

import jakarta.validation.constraints.NotBlank;

public class favorDTO {
    @NotBlank(message = "musicId不能为空")
    private String musicId;
    @NotBlank(message = "musicName不能为空")
    private String musicName;
    @NotBlank(message = "artName不能为空")
    private String artName;
    @NotBlank(message = "album不能为空")
    private String album;
    private String coverUrl;
    private String lyricUrl;
    private String playUrl;
    private Integer dt;
    private boolean liked = false;
    private String userId;
    public favorDTO() {
    }
    public String getPlayUrl() {
        return playUrl;
    }

    public void setPlayUrl(String playUrl) {
        this.playUrl = playUrl;
    }

    public String getMusicId() {
        return musicId;
    }

    public void setMusicId(String musicId) {
        this.musicId = musicId;
    }

    public String getMusicName() {
        return musicName;
    }

    public void setMusicName(String musicName) {
        this.musicName = musicName;
    }

    public String getArtName() {
        return artName;
    }

    public void setArtName(String artName) {
        this.artName = artName;
    }

    public String getAlbum() {
        return album;
    }

    public void setAlbum(String album) {
        this.album = album;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getLyricUrl() {
        return lyricUrl;
    }

    public void setLyricUrl(String lyricUrl) {
        this.lyricUrl = lyricUrl;
    }

    public Integer getDt() {
        return dt;
    }

    public void setDt(Integer dt) {
        this.dt = dt;
    }

    public boolean isLiked() {
        return liked;
    }

    public void setLiked(boolean liked) {
        this.liked = liked;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "favorDTO{" +
                "musicId='" + musicId + '\'' +
                ", musicName='" + musicName + '\'' +
                ", artName='" + artName + '\'' +
                ", album='" + album + '\'' +
                ", coverUrl='" + coverUrl + '\'' +
                ", lyricUrl='" + lyricUrl + '\'' +
                ", playUrl='" + playUrl + '\'' +
                ", dt=" + dt +
                ", liked=" + liked +
                ", userId='" + userId + '\'' +
                '}';
    }
}
